import requests

page = 1
while True:
    url = f'https://api.bilibili.com/pgc/season/index/result?st=1&order=3&season_version=-1&spoken_language_type=-1&area=-1&is_finish=-1&copyright=-1&season_status=-1&season_month=-1&year=-1&style_id=-1&sort=0&page={page}&season_type=1&pagesize=20&type=1'

    response = requests.get(url,headers={
        'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',

    })

    if response.status_code == 200:
        json_data = response.json()
        data = json_data['data']
        items = data['list']
        for item in items:
            print(item)

        if data['has_next']:
            page += 1
        else:
            break
    else:
        pass
    